/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package unc.pds.news;

import java.util.Date;

/**
 *
 * @author ain
 */
public class News implements Comparable {
    public Long context;
    public Long entityID;
    public String event;
    public Date time;

    public int compareTo(Object o) {
        News nTC = (News)o;
        if (nTC==null||nTC.time==null||time==null) return 0;
        return -1*time.compareTo(nTC.time);
    }
}
